/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 * No deletion without permission, or be held responsible to law.
 * @author YDZ
 */
import { defHttp } from '/@/utils/http/axios';
import { useGlobSetting } from '/@/hooks/setting';
import { BasicModel, Page } from '../model/baseModel';

const { adminPath } = useGlobSetting();

export interface PmTermination extends BasicModel<PmTermination> {
  tercode?: string; // 项目编号
  projectname?: string; // 项目名称
  name?: string; // 发起人
  createtime?: string; // 发起时间
  remarkes?: string; // 申请原因
  auditor?: string; // 审批人
  checktime?: string; // 审批时间
  checkremarkes?: string; // 审批原因
  terminationid?: string; // 终止人
  termination?: number; // 终止状态
  terminationremarkes?: string; // 终止原因
  perid?: string; // perid
  proid?: string; // proid
  check?: number; // check
  ttime?: string; // ttime
  terminationfile?: string; // terminationfile
}

export const pmTerminationList = (params?: PmTermination | any) =>
  defHttp.get<PmTermination>({ url: adminPath + '/proj/over/pmTermination/list', params });

export const pmTerminationListData = (params?: PmTermination | any) =>
  defHttp.post<Page<PmTermination>>({ url: adminPath + '/proj/over/pmTermination/listData', params });

export const pmTerminationForm = (params?: PmTermination | any) =>
  defHttp.get<PmTermination>({ url: adminPath + '/proj/over/pmTermination/form', params });

export const pmTerminationSave = (params?: any, data?: PmTermination | any) =>
  defHttp.postJson<PmTermination>({ url: adminPath + '/proj/over/pmTermination/save', params, data });

export const pmTerminationDelete = (params?: PmTermination | any) =>
  defHttp.get<PmTermination>({ url: adminPath + '/proj/over/pmTermination/delete', params });
